//
//  NightTableViewCell.m
//  BuffetNews
//
//  Created by 李荃荃 on 14-11-7.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "NightTableViewCell.h"

@implementation NightTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.switchButton = [[UISwitch alloc] init];
        [self.contentView addSubview:self.switchButton];
        [_switchButton release];
        self.titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.titleLabel];
        [_titleLabel release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(10, 0, 80, self.contentView.frame.size.height);
    self.switchButton.frame = CGRectMake(self.contentView.frame.size.width - 80, 10, 80, 25);
}
- (void)awakeFromNib
{
    // Initialization code
}
- (void)dealloc
{
    [_switchButton release];
    [_titleLabel release];
    [super dealloc];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
